#include "soy.h"

Soy::Soy()
{

}

Soy::Soy(Beverage *beverage)
{
    this->m_beverage = beverage;
}

double Soy::cost()
{
    double cost = m_beverage->cost();
    if(m_beverage->getSize() == Size::TALL) {
        cost += 1;
    } else if(m_beverage->getSize() == Size::GRANDE) {
        cost += 2;
    } else if(m_beverage->getSize() == Size::VENTI){
        cost += 3;
    } else {
        // nothing to do
    }

    return cost;
}

std::string Soy::getDescription()
{
    return m_beverage->getDescription() + ", Soy";
}

